package com.mario.util;

import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zul.Image;

public abstract class ImageButton extends Image {

	private static final long serialVersionUID = 7292468116873553518L;

	public ImageButton(String src, EventListener<? extends Event> listener) {
		super();
		setSrc(src);
		addEventListener("onClick", listener);
	}
}
